package com.vote.vote.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vote.vote.domain.TbVote;
import com.vote.vote.service.TbVoteService;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.concurrent.ConcurrentHashMap;

/**
 * (TbVote)表数据库访问层
 *
 * @author makejava
 * @since 2023-09-26 10:23:32
 */
public interface TbVoteDao extends BaseMapper<TbVote> {

    List<TbVote> queryList(TbVote tbVote);

    Integer updateVoteById(@Param("tbVote") TbVote tbVote);

    @Override
    int insert(@Param("tbVote") TbVote tbVote);

    List<ConcurrentHashMap<String,Object>> getRanking();
}

